﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace TheCup
{
    public class MatchPlayListEntry
    {
        public Player Player { get; set; }

        public string TiedPositionIndicator { get; set; }
        public int Position { get; set; }

        public int MatchesPlayed { get; set; }
        public int MatchesWon { get; set; }
        public int MatchesLost { get; set; }
        public int MatchesSquared { get; set; }

        public int CalculatedPoints
        {
            get
            {
                return (MatchesWon * 3) + (MatchesSquared * 1) + (MatchesLost * 0);
            }
        }
    }
  
}